﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Diablo3.Window
{
    public partial class NewClasses : Form
    {
        public String ClassesType { get; set; }

        public NewClasses()
        {
            InitializeComponent();
            ClassesType = "Barbarian";
            rBarbarian.Checked = true;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            if (rBarbarian.Checked)
            {
                ClassesType = "Barbarian";
            }
            else if (rWizard.Checked)
            {
                ClassesType = "Wizard";
            }
            else if (rMonk.Checked)
            {
                ClassesType = "Monk";
            }
            else if (rWitchDoctor.Checked)
            {
                ClassesType = "WitchDoctor";
            }
            else if (rDemonHunter.Checked)
            {
                ClassesType = "DemonHunter";
            }
            DialogResult = System.Windows.Forms.DialogResult.OK;
        }
    }
}
